'use strict';

const codeRule = {
    code: {
        type: 'string',
        min: 1,
    }
}

const decryptRule = {
    code: {
        type: 'string',
        min: 1,
    },
    encryptedData: {
        type: 'string',
        min: 1,
    },
    iv: {
        type: 'string',
        min: 1,
    }
}

const phoneRule = {
    openid: {
        type: "string"
    },
    phone: {
        type: "phone"
    }
}

module.exports = {
    decryptRule,
    phoneRule,
    codeRule,
};